package com.xjrsoft.module.erpModel.caseErpDevice.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class AddCaseErpDeviceInspectDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备类型数据字典id")
    private Long typeId;

    @ApiModelProperty("设备名称")
    private Long name;

    @ApiModelProperty("巡检人(可以多人，分割)")
    private String checkedUserIds;

    @ApiModelProperty("检查性质，数据字典id")
    private Long natureId;

    @ApiModelProperty("检查设备")
    private Long deviceId;

    @ApiModelProperty("设备编号")
    @JsonProperty("number")
    private String code;

    @ApiModelProperty("设备位置")
    private String address;

    @ApiModelProperty("规格型号")
    private String model;

    @ApiModelProperty("检查结果")
    private String result;

    @ApiModelProperty("巡检时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("date")
    private Timestamp inspectDate;

    @ApiModelProperty("附件")
    private String filePath;

    @ApiModelProperty("巡检状态(1已完成，0待维修)")
    private Integer state;

    @ApiModelProperty("备注")
    private String remark;

}
